<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
<p>&emsp;&emsp;本页面已被访问<span id="visit">${count}</span>次。</p>
<form action="/upload1" method="post" enctype="multipart/form-data">
    <input type="file" name="file">
    <input type="submit" value="上传">
</form>

<p>上传目录</p>
<form action="/uploadDir" enctype="multipart/form-data" method="post">
    <input id="dir" type="file" name="dir" webkitdirectory/>
    <input id="uploadDir" type="submit" value="提交文件夹">
</form>

<p>文件下载</p>
<form action="/download" method="post" enctype="multipart/form-data">
    <input id="dlfile" type="file" name="dlfile" />
    <input id="dl" type="submit" value="下载文件">
</form>
<!--
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
-->
<script src="./js/jquery-3.4.1.min.js"></script>
<script>
    $(document).ready(function(){
        // var count = "123";
        // $("#visit").append(count.toString());
    });
</script>
</body>
</html>